package com.lhh.springcloud.service;

import com.lhh.entity.Result;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@FeignClient(value = "seata-account-micro-service")
@Service
public interface AccountService {
    @PostMapping("/account/update")
    public Result updateAccountMoney(@RequestParam(value = "user_id") Long user_id,
                                     @RequestParam(value = "money") Integer money);
}
